public class Main {

    public static void main(String[] args) {
        try {
            Chart aSupportedChart;
            aSupportedChart = ChartFactory.createChart("line");
            aSupportedChart.bindData();
            aSupportedChart.update();
            Chart anUnsupportedChart;
            anUnsupportedChart = ChartFactory.createChart("random");
        }
        catch (UnsupportedChartException e) {
            System.err.println(e.getMessage());
        }
    }
}
